//
//  ReimenTableViewCell.m
//  MarryMe
//
//  Created by lanou3g on 16/1/5.
//  Copyright © 2016年 revocher. All rights reserved.
//

#import "ReimenTableViewCell.h"

@implementation ReimenTableViewCell

- (void)awakeFromNib {
    // Initialization code
    
    UITapGestureRecognizer *tap1 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap1:)];
    UITapGestureRecognizer *tap2 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap2:)];
    UITapGestureRecognizer *tap3 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap3:)];
    UITapGestureRecognizer *tap4 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap4:)];
    UITapGestureRecognizer *tap5 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap5:)];
    UITapGestureRecognizer *tap6 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap6:)];
    UITapGestureRecognizer *tap7 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap7:)];
    UITapGestureRecognizer *tap8 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap8:)];
    UITapGestureRecognizer *tap9 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap9:)];
    
    [self.image1 addGestureRecognizer:tap1];
     [self.image2 addGestureRecognizer:tap2];
     [self.image3 addGestureRecognizer:tap3];
     [self.image4 addGestureRecognizer:tap4];
     [self.image5 addGestureRecognizer:tap5];
     [self.image6 addGestureRecognizer:tap6];
     [self.image7 addGestureRecognizer:tap7];
     [self.image8 addGestureRecognizer:tap8];
     [self.image9 addGestureRecognizer:tap9];
    
    self.image1.layer.borderWidth = 0.25;
    self.image1.layer.borderColor = [UIColor grayColor].CGColor;
    
    self.image2.layer.borderWidth = 0.25;
    self.image2.layer.borderColor = [UIColor grayColor].CGColor;
    
    self.image3.layer.borderWidth = 0.26;
    self.image3.layer.borderColor = [UIColor grayColor].CGColor;
    
    self.image4.layer.borderWidth = 0.25;
    self.image4.layer.borderColor = [UIColor grayColor].CGColor;
    
    self.image5.layer.borderWidth = 0.25;
    self.image5.layer.borderColor = [UIColor grayColor].CGColor;
    
    self.image6.layer.borderWidth = 0.26;
    self.image6.layer.borderColor = [UIColor grayColor].CGColor;
    
    self.image7.layer.borderWidth = 0.25;
    self.image7.layer.borderColor = [UIColor grayColor].CGColor;
    
    self.image8.layer.borderWidth = 0.25;
    self.image8.layer.borderColor = [UIColor grayColor].CGColor;
    
    self.image9.layer.borderWidth = 0.26;
    self.image9.layer.borderColor = [UIColor grayColor].CGColor;
}

-(void)tap1:(UITapGestureRecognizer *)sender{
    NSDictionary *dic = [NSDictionary dictionaryWithObject:@"中式婚礼" forKey:@"中式婚礼"];
    [[NSNotificationCenter defaultCenter]postNotificationName:@"image1" object:nil userInfo:dic];
    
}

-(void)tap2:(UITapGestureRecognizer *)sender{
    NSDictionary *dic = [NSDictionary dictionaryWithObject:@"森系婚礼" forKey:@"森系婚礼"];
    [[NSNotificationCenter defaultCenter]postNotificationName:@"image2" object:nil userInfo:dic];
    
}

-(void)tap3:(UITapGestureRecognizer *)sender{
    NSDictionary *dic = [NSDictionary dictionaryWithObject:@"双机位" forKey:@"双机位"];
    [[NSNotificationCenter defaultCenter]postNotificationName:@"image3" object:nil userInfo:dic];
    
}

-(void)tap4:(UITapGestureRecognizer *)sender{
    NSDictionary *dic = [NSDictionary dictionaryWithObject:@"花海婚纱" forKey:@"花海婚纱"];

    [[NSNotificationCenter defaultCenter]postNotificationName:@"image4" object:nil userInfo:dic];
    
}

-(void)tap5:(UITapGestureRecognizer *)sender{
    NSDictionary *dic = [NSDictionary dictionaryWithObject:@"水下婚纱" forKey:@"水下婚纱"];

    [[NSNotificationCenter defaultCenter]postNotificationName:@"image5" object:nil userInfo:dic];
    
}

-(void)tap6:(UITapGestureRecognizer *)sender{
    NSDictionary *dic = [NSDictionary dictionaryWithObject:@"马场婚纱" forKey:@"马场婚纱"];

    [[NSNotificationCenter defaultCenter]postNotificationName:@"image6" object:nil userInfo:dic];
    
}

-(void)tap7:(UITapGestureRecognizer *)sender{
    NSDictionary *dic = [NSDictionary dictionaryWithObject:@"马尔代夫" forKey:@"马尔代夫"];

    [[NSNotificationCenter defaultCenter]postNotificationName:@"image7" object:nil userInfo:dic];
    
}

-(void)tap8:(UITapGestureRecognizer *)sender{
    NSDictionary *dic = [NSDictionary dictionaryWithObject:@"巴厘岛" forKey:@"巴厘岛"];

    [[NSNotificationCenter defaultCenter]postNotificationName:@"image8" object:nil userInfo:dic];
    
}

-(void)tap9:(UITapGestureRecognizer *)sender{
    [[NSNotificationCenter defaultCenter]postNotificationName:@"image9" object:nil];
    
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
